package com.itqf;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/10/15
 * @Time: 下午4:22
 */
public class TestDumpDb {

    public  static  void  main(String[]args) throws  Exception{

        Runtime runtime = Runtime.getRuntime();

        String  fileName  = System.currentTimeMillis()+".sql";

        runtime.exec("mysqldump -uroot -padmin shirodb -r /Users/liliting/Desktop/code/part3/QuatrtzDemo02_Spring/"+fileName);


    }

}
